repeat with tempcard in ["ace_hearts", "king_hearts", "king_spades", "king_diamonds", "king_clubs", "king_hearts", "king_spades", "king_diamonds", "king_clubs"]
repeat with i = 1 to shuffledCards.count
if (shuffledCards[i].rank & "_" & shuffledCards[i].suit) = tempcard then
shuffledCards.deleteAt(i)
exit repeat
end if
end repeat
end repeat
return shuffledCards
end
on checkwin
if points = (95 * 10) then
pootimer = timeout("poo").new(150, #gotoit)
else
if (stock.cards.count = 0) and (deals = 3) then
checklose()
end if
end if
end
on gotoit
pootimer.forget()
win = "yes"
go("gameover")
end
on makesymbol arg
return string(arg).symbol
end
on getlist arg
if arg = 19 then
return waste.getlastcard()
end if
if (arg >= 29) and (arg <= 36) then
return reserve[makesymbol(arg)].getlastcard()
end if
end
on checklose
if stock.cards.count = 0 then
if deals = 3 then
repeat with shits in [19, 33, 34, 35, 36, 29, 30, 31, 32]
if sprite(shits).member.name = "block" then
next repeat
end if
repeat with asshole = 20 to 28
if asshole = 20 then
next repeat
end if
if ((getValue(sprite(shits).member.name) = (getValue(sprite(asshole).member.name) + 1)) or ((getValue(sprite(shits).member.name) = 1) and (getValue(sprite(asshole).member.name) = 13) and (asshole <> 25))) and (getSuit(sprite(shits).member.name) = getSuit(sprite(asshole).member.name)) then
abort()
end if
end repeat
end repeat
win = "no"
pootimer = timeout("poo").new(50, #gotoit)
end if
end if
end
on getValue arg
if (arg contains "hearts") or (arg contains "spades") then